using System;
using UnityEngine;

public struct BCWDebugMessageLine
{
	private string _message;

	private string _stackTrace;

	private Color _color;

	private int _count;

	private int _maxHeight;

	private DateTime _lastUpdateTime;

	private DateTime _lastChangeTime;

	private LogType _type;

	public string message
	{
		get
		{
			return _message;
		}
		set
		{
			_message = value;
			RefreshTime();
			RefreshChangeTime();
		}
	}

	public Color color
	{
		get
		{
			return _color;
		}
		set
		{
			_color = value;
			RefreshTime();
		}
	}

	public int maxHeight
	{
		get
		{
			return _maxHeight;
		}
		set
		{
			_maxHeight = value;
		}
	}

	public int count
	{
		get
		{
			return _count;
		}
		set
		{
			_count = value;
			RefreshTime();
		}
	}

	public LogType type
	{
		get
		{
			return _type;
		}
		set
		{
			_type = value;
			RefreshTime();
		}
	}

	public DateTime lastUpdateTime
	{
		get
		{
			return _lastUpdateTime;
		}
	}

	public DateTime lastChangeTime
	{
		get
		{
			return _lastChangeTime;
		}
	}

	public BCWDebugMessageLine(BCWDebugMessageLine line)
	{
		_message = line._message;
		_stackTrace = line._stackTrace;
		_color = line._color;
		_count = line._count;
		_maxHeight = line._maxHeight;
		_lastChangeTime = line._lastChangeTime;
		_lastUpdateTime = line._lastUpdateTime;
		_type = line._type;
	}

	public void RefreshChangeTime()
	{
		_lastChangeTime = DateTime.Now;
	}

	public void RefreshTime()
	{
		_lastUpdateTime = DateTime.Now;
	}
}
